package com.wish.banking.controller;


import com.wish.banking.entity.CfContract;
import com.wish.banking.entity.JrProduct;
import com.wish.banking.service.ICfContractService;
import com.wish.common.core.usconfig.common.MsgResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * ！房态-杨子强 + 崔(租客合约) + 曹佳林申请租房分期 前端控制器
 * </p>
 *
 * @author gaoluwen
 * @since 2022-04-04
 */
@RestController
@RequestMapping("/cf-contract")
public class CfContractController {
    @Autowired
    ICfContractService iCfContractService;
    //模糊查询根据 查询小区名 租客姓名
    @PostMapping("contractList")
    public MsgResult productList(@RequestBody CfContract cfContract){
        List<CfContract> list = iCfContractService.contractList(cfContract);
        return MsgResult.succeed(list);
    }
}
